{foreach from=$structure item=struct}

<div style="border-bottom:1px solid #CCC;">
	<div style="float:left;width:25px;">
	{if $content.multiple}
		<input style="width:20px;" {if $content.disabled==true}disabled="disabled"{/if} type="checkbox" name="obj[{$obj.obj_id}][{$content.fieldname}][]" id="{$content.fieldname}[]" value="{$struct.value}" {if in_array($struct.value,$content.selected)}checked="checked"{/if} />
	{else}
		<input style="width:20px;" {if $content.disabled==true}disabled="disabled"{/if}  type="radio" name="obj[{$obj.obj_id}][{$content.fieldname}]" id="{$content.fieldname}" value="{$struct.value}"  {if $struct.value==$content.selected} selected="selected"{/if}  />
	{/if}
	</div>
	<div style="padding-left:{$level}px;float:left;">
		{$struct.name}<br /> 
	</div>
	<br style="clear:both;">
</div>
{if is_array($struct.subpages)}
	{include file="`$CMS_TPL_DIR`/forms/structureselect_tree.tpl" structure=$struct.subpages level=$level+10}
{/if}
{/foreach}

